<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('周几')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="checkbox">
                {foreach name="weekdaysList" item="vo"}
                <label for="row[week_days][]-{$key}"><input id="row[week_days][]-{$key}" name="row[week_days][]" type="checkbox" value="{$key}" {in name="key" value="$row.week_days"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>

    <div class="LiveShow">
        <div class=" fieldlist" id="one">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2" style="font-size: 20px">{:__('详情页预约时间段')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <label id="addjobs" class="btn-append " style="font-size: 20px"> 添加</label>
                </div>


            </div>

            <div id="jobs">
                <input value="{$totaljobs}" style="display: none;" id="totaljobs">
                {volist name="jobs" id="vo" key="key3"}
                <div style="padding-top: 10px;" class="job{$key3-1}" data-index='{$key3-1}' >

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2" style="font-size: 20px">详情时间段：</label>
                        <input value="{$vo.id}" style="display: none;" name="row[job][{$key3-1}][live_job_id]">

                        <div class="col-xs-4 col-sm-3" style="font-size: 20px;">
                            <input  data-rule="required" class="form-control datetimepicker"
                                    data-date-format="HH:mm" data-use-current="true"
                                    name="row[job][{$key3-1}][startime]" type="text" value="{$vo.startime}">
                        </div>
                        <div class="col-xs-2 col-sm-1" style="font-size: 20px;">
                            <label  style="padding-top: 5px"> 至</label>
                        </div>
                        <div class="col-xs-4 col-sm-3" style="font-size: 20px;">
                            <input  data-rule="required" class="form-control datetimepicker"
                                    data-date-format="HH:mm" data-use-current="true"
                                    name="row[job][{$key3-1}][endtime]" type="text" value="{$vo.endtime}">
                        </div>
                        <div class="col-xs-2 col-sm-1" style="font-size: 20px;">
                            <label onclick="removejob({$key3-1})" data-index="{$key3-1}" style="padding-top: 5px"> 删除</label>
                        </div>


                    </div>

                </div>

                {/volist}

            </div>
        </div>
    </div>
    <div class=" LiveShow">
        <div class=" fieldlist">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2" style="font-size: 20px;">{:__('具体预约时间段')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <label id="addresumes" class="btn-append " style="font-size: 20px;"> 添加</label>
                </div>

            </div>
            <div id="resumes">

                <input value="{$totalresumes}" style="display: none;" id="totalresumes">
                {volist name="resumes" id="vo" key="key4"}
                <div style="padding-top: 10px;" class="resumes{$key4-1}" data-index='{$key4-1}' >

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2" style="font-size: 20px">预约时间段：</label>
                        <input value="{$vo.id}" style="display: none;" name="row[resume][{$key4-1}][live_resume_id]">
                        <div class="col-xs-4 col-sm-3" style="font-size: 20px;">
                            <input  data-rule="required" class="form-control datetimepicker"
                                    data-date-format="HH:mm" data-use-current="true"
                                    name="row[resume][{$key4-1}][startime]" type="text" value="{$vo.startime}">
                        </div>
                        <div class="col-xs-2 col-sm-1" style="font-size: 20px;">
                            <label  style="padding-top: 5px"> 至</label>
                        </div>
                        <div class="col-xs-4 col-sm-3" style="font-size: 20px;">
                            <input  data-rule="required" class="form-control datetimepicker"
                                    data-date-format="HH:mm" data-use-current="true"
                                    name="row[resume][{$key4-1}][endtime]" type="text" value="{$vo.endtime}">
                        </div>

                        <div class="col-xs-2 col-sm-1" style="font-size: 20px;">
                            <div onclick="removeresume({$key4-1})" data-index="{$key4-1}"  style="padding-top: 5px"> 删除</div>
                        </div>

                    </div>


                </div>

                {/volist}
            </div>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
